package com.gmu.mapper;

import com.gmu.pojo.TblSampleAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 采样地点表 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-07-24
 */
public interface TblSampleAddressMapper extends BaseMapper<TblSampleAddress> {

    List<TblSampleAddress> getAllSampleAddressByUnitsId(Integer startIndex,Integer pageSize,Integer unitsId);
    Integer getAllSampleAddressByUnitsIdTotal(Integer startIndex,Integer pageSize,Integer unitsId);

    List<TblSampleAddress> getSampleAddressByUnitsId(@Param("beSampleUnitsId") Integer beSampleUnitsId);

    List<TblSampleAddress> getAddressByUnitsId(Map<String,Object> map);

    Integer getAddressByUnitsIdTotal(Map<String,Object> map);

    Integer deleteSampleAddressByIds(Integer[] sampleAddressIds);

}
